<!doctype html><html lang dir=ltr><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>树莓派内网穿透 | Hui.Ke - Blog</title><meta name=generator content="Hugo Eureka 0.9.3"><link rel=stylesheet href=https://b.hui.ke/css/eureka.min.9cec6350e37e534b0338fa9a085bf06855de3b0f2dcf857e792e5e97b07ea905d4d5513db554cbc26a9c3da622bae92d.css><script defer src=https://b.hui.ke/js/eureka.min.fa9a6bf6d7a50bb635b4cca7d2ba5cf3dfb095ae3798773f1328f7950028b48c17d06276594e1b5f244a25a6c969a705.js></script>
<link rel=preconnect href=https://fonts.googleapis.com><link rel=preconnect href=https://fonts.gstatic.com crossorigin><link rel=preload href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap" as=style onload='this.onload=null,this.rel="stylesheet"'><link rel=stylesheet href=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/vs.min.css media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/bash.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/ini.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/json.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/php.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/python.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/shell.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/sql.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/x86asm.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/xml.min.js crossorigin></script>
<link rel=stylesheet href=https://b.hui.ke/css/highlightjs.min.2958991528e43eb6fc9b8c4f2b8e052f79c4010718e1d1e888a777620e9ee63021c2c57ec7417a3108019bb8c41943e6.css media=print onload='this.media="all",this.onload=null'><script defer type=text/javascript src=https://lib.baomitu.com/font-awesome/6.1.1/js/all.min.js></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css integrity=sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.js integrity=sha384-VQ8d8WVFw0yHhCk5E8I86oOhv48xLpnDZx5T9GogA/Y84DcCKWXDmSDfn13bzFZY crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/contrib/auto-render.min.js integrity=sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}]})})</script><script defer src=https://cdn.jsdelivr.net/npm/mermaid@8.14.0/dist/mermaid.min.js integrity=sha384-atOyb0FxAgN9LyAc6PEf9BjgwLISyansgdH8/VXQH8p2o5vfrRgmGIJ2Sg22L0A0 crossorigin></script>
<link rel=icon type=image/png sizes=32x32 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_32x32_fill_box_center_3.png><link rel=apple-touch-icon sizes=180x180 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_180x180_fill_box_center_3.png><meta name=description content="  博主的站群长年无人问津，广告收入几乎没有，于是再也负担不起高额的服务器费用了😭。可能是老天爷还想逛博主的网站吧，让博主无意之间看到了树莓派，好奇之心顿起，火速下单，到手以后一番折腾，终于把网站从云端迁移到了本地。本文就记录了折腾过程（主要是内网穿透方面）。"><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://b.hui.ke/posts/"},{"@type":"ListItem","position":2,"name":"树莓派内网穿透","item":"https://b.hui.ke/posts/raspberry-pi-intranet-penetration/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://b.hui.ke/posts/raspberry-pi-intranet-penetration/"},"headline":"树莓派内网穿透 | Hui.Ke - Blog","datePublished":"2021-03-02T14:30:11+08:00","dateModified":"2021-03-02T14:30:11+08:00","wordCount":1349,"author":{"@type":"Person","name":"Hui.ke"},"publisher":{"@type":"Person","name":"Hui.Ke","logo":{"@type":"ImageObject","url":"https://b.hui.ke/icon.png"}},"description":"\u003cp\u003e  博主的站群长年无人问津，广告收入几乎没有，于是再也负担不起高额的服务器费用了😭。可能是老天爷还想逛博主的网站吧，让博主无意之间看到了树莓派，好奇之心顿起，火速下单，到手以后一番折腾，终于把网站从云端迁移到了本地。本文就记录了折腾过程（主要是内网穿透方面）。\u003c\/p\u003e"}</script><meta property="og:title" content="树莓派内网穿透 | Hui.Ke - Blog"><meta property="og:type" content="article"><meta property="og:image" content="https://b.hui.ke/icon.png"><meta property="og:url" content="https://b.hui.ke/posts/raspberry-pi-intranet-penetration/"><meta property="og:description" content="  博主的站群长年无人问津，广告收入几乎没有，于是再也负担不起高额的服务器费用了😭。可能是老天爷还想逛博主的网站吧，让博主无意之间看到了树莓派，好奇之心顿起，火速下单，到手以后一番折腾，终于把网站从云端迁移到了本地。本文就记录了折腾过程（主要是内网穿透方面）。"><meta property="og:site_name" content="Hui.Ke - Blog"><meta property="article:published_time" content="2021-03-02T14:30:11+08:00"><meta property="article:modified_time" content="2021-03-02T14:30:11+08:00"><meta property="article:section" content="posts"><meta property="article:tag" content="Raspberry Pi"><meta property="article:tag" content="树莓派"><meta property="article:tag" content="内网穿透"><meta property="og:see_also" content="https://b.hui.ke/posts/data-security-and-personal-information-protection/"><meta property="og:see_also" content="https://b.hui.ke/posts/mp-1/"><meta property="og:see_also" content="https://b.hui.ke/posts/regedit-delete-startup-item/"><meta property="og:see_also" content="https://b.hui.ke/posts/ols-wordpress/"><meta property="og:see_also" content="https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-thin-light-laptops/"><meta property="og:see_also" content="https://b.hui.ke/posts/sangfor-pt1/"><meta property="og:see_also" content="https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/"><meta property="og:see_also" content="https://b.hui.ke/posts/my-github-stars/"><meta property="og:see_also" content="https://b.hui.ke/posts/raspberry-pi-motion/"><meta property="og:see_also" content="https://b.hui.ke/posts/transfer-files-with-rsync/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-iflytek-mice/"><meta property="og:see_also" content="https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/"><meta property="og:see_also" content="https://b.hui.ke/posts/image-and-video-optimization/"><meta property="og:see_also" content="https://b.hui.ke/posts/ccia-top-50-2020/"><meta property="og:see_also" content="https://b.hui.ke/posts/cdn-nodes/"><meta property="og:see_also" content="https://b.hui.ke/posts/vulfocus-building-guide/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-vulstudy/"><meta property="og:see_also" content="https://b.hui.ke/posts/windows-file-recovery-help/"><meta property="og:see_also" content="https://b.hui.ke/posts/bt-and-trojan/"><meta property="og:see_also" content="https://b.hui.ke/posts/steam-free-games-27/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-trojan/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-taobao-coupon-website/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-ssr/"><meta property="og:see_also" content="https://b.hui.ke/posts/hello-everyone/"><script>!function(e){"use strict";!function(){var i,s=window,o=document,a=e,c="".concat("https:"===o.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=o.createElement("script"),r=o.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",a.d=n,i=function(){s.LA.ids.push(a)},s.LA?s.LA.ids&&i():(s.LA=e,s.LA.ids=[],i()),r.parentNode.insertBefore(n,r)}()}({id:"Jgb8aUbG5e3rqhrs",ck:"Jgb8aUbG5e3rqhrs",autoTrack:!0,hashMode:!0})</script><body class="flex min-h-screen flex-col"><header class="min-h-16 pl-scrollbar bg-secondary-bg fixed z-50 flex w-full items-center shadow-sm"><div class="mx-auto w-full max-w-screen-xl"><script>let storageColorScheme=localStorage.getItem("lightDarkMode");((storageColorScheme=="Auto"||storageColorScheme==null)&&window.matchMedia("(prefers-color-scheme: dark)").matches||storageColorScheme=="Dark")&&document.getElementsByTagName("html")[0].classList.add("dark")</script><nav class="flex items-center justify-between flex-wrap px-4 py-4 md:py-0"><a href=/ class="me-6 text-primary-text text-xl font-bold">Hui.Ke - Blog</a>
<button id=navbar-btn class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
<i class="fas fa-bars"></i></button><div id=target class="hidden block md:flex md:grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20"><div class="md:flex md:h-16 text-sm md:grow pb-4 md:pb-0 border-b md:border-b-0"><a href=/posts/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 selected-menu-item me-4">Posts</a>
<a href=/docs/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Docs</a>
<a href=/categories/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Categories</a>
<a href=/series/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Series</a>
<a href=/tags/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Tags</a>
<a href=/love/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Love</a>
<a href=/about/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">About</a></div><div class=flex><div class="relative pt-4 md:pt-0"><div class="cursor-pointer hover:text-eureka" id=lightDarkMode><i class="fas fa-adjust"></i></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id=is-open></div><div class="absolute flex flex-col start-0 md:start-auto end-auto md:end-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40" id=lightDarkOptions><span class="px-4 py-1 hover:text-eureka" name=Light>Light</span>
<span class="px-4 py-1 hover:text-eureka" name=Dark>Dark</span>
<span class="px-4 py-1 hover:text-eureka" name=Auto>Auto</span></div></div></div></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id=is-open-mobile></div></nav><script>let element=document.getElementById("lightDarkMode");storageColorScheme==null||storageColorScheme=="Auto"?document.addEventListener("DOMContentLoaded",()=>{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",switchDarkMode)}):storageColorScheme=="Light"?(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","sun"),element.firstElementChild.classList.add("fa-sun")):storageColorScheme=="Dark"&&(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","moon"),element.firstElementChild.classList.add("fa-moon")),document.addEventListener("DOMContentLoaded",()=>{getcolorscheme(),switchBurger()})</script></div></header><main class="grow pt-16"><div class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl lg:px-4 xl:px-8"><div class="grid grid-cols-2 gap-4 lg:grid-cols-8 lg:pt-12"><div class="bg-secondary-bg col-span-2 rounded px-6 py-8 lg:col-span-6"><article class=prose><h1 class=mb-4>树莓派内网穿透</h1><div class="text-tertiary-text not-prose mt-2 flex flex-row flex-wrap items-center"><div class="me-6 my-2"><i class="fas fa-calendar me-1"></i>
<span>2021-03-02</span></div><div class="me-6 my-2"><i class="fa-solid fa-pen-to-square me-1"></i>
<span>2021-03-02</span></div><div class="me-6 my-2"><i class="fas fa-clock me-1"></i>
<span>3 min read</span></div><div class="me-6 my-2"><i class="fas fa-folder me-1"></i>
<a href=https://b.hui.ke/categories/it/ class=hover:text-eureka>IT</a></div><div class="me-6 my-2"><i class="fas fa-th-list me-1"></i>
<a href=https://b.hui.ke/series/misc/ class=hover:text-eureka>Misc</a></div><div class="me-6 my-2"><i class="fa-solid fa-eye me-1"></i>
<span id=busuanzi_value_page_pv><i class="fa fa-spinner fa-spin"></i></span> Hits</div></div><p>  博主的站群长年无人问津，广告收入几乎没有，于是再也负担不起高额的服务器费用了😭。可能是老天爷还想逛博主的网站吧，让博主无意之间看到了树莓派，好奇之心顿起，火速下单，到手以后一番折腾，终于把网站从云端迁移到了本地。本文就记录了折腾过程（主要是内网穿透方面）。</p><h2 id=准备工具>准备工具</h2><ul><li>Raspberry Pi / 树莓派一个（博主用的是 8G 内存的 4B）</li><li>有（最好固定）公网 IP 的服务器一台（博主用的是：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> Ubuntu 20.04）</li></ul><blockquote><p>友情提示：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> 可能需要先翻墙才可访问！</p></blockquote><h2 id=服务器端>服务器端</h2><h3 id=安装-frps>安装 frps</h3><pre><code class=language-shell>wget https://github.com/fatedier/frp/releases/download/v0.37.1/frp_0.37.1_linux_amd64.tar.gz     # 下载系统内核版本对应的 frp 压缩包
tar -xzvf frp_0.37.1_linux_amd64.tar.gz     # 解压到当前文件夹
nano frp_0.37.1_linux_amd64/frps.ini     # 编辑 frps 配置文件
</code></pre><h3 id=公网服务器端-frps-配置>公网服务器端 frps 配置</h3><p>  服务器端（frps）详细配置请查看官方 Wiki：<a href=https://gofrp.org/docs/reference/server-configures/>服务端配置</a></p><p>  贴上博主的 frps.ini</p><pre><code class=language-ini>[common]
bind_port = 7000     # frp 运行端口
log_file = /root/frp_0.37.1_linux_amd64/frps.log     # frps 日志文件路径
token = **请输入你的 token**     # 为服务器安全建议使用 token
tls_only = true     # 为了安全请启用
allow_ports = **remote_port1,remote_port2**     # 填入公网要访问的端口
dashboard_port = 7500     # frps 管理地址
dashboard_user = admin     # frps 管理员账号
dashboard_pwd = 123456     # frps 管理员密码
</code></pre><h3 id=将-frps-写入系统服务>将 frps 写入系统服务</h3><p><code>nano /lib/systemd/system/frps.service</code> # 新建一个 service 并写入以下配置保存</p><pre><code class=language-ini>[Unit]
Description = frps
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
ExecStart = /root/frp_0.37.1_linux_amd64/frps -c /root/frp_0.37.1_linux_amd64/frps.ini

[Install]
WantedBy = multi-user.target
</code></pre><h3 id=启动-frps-并设置开机自启>启动 frps 并设置开机自启</h3><pre><code class=language-shell>systemctl start frps
systemctl enable frps
</code></pre><blockquote><p>至此内网穿透服务器端的配置就完成了，下面进行内网客户端（树莓派）的配置</p></blockquote><h2 id=树莓派>树莓派</h2><h3 id=使用官方-64-位-raspbian>使用官方 64 位 Raspbian</h3><p>  建议使用树莓派官方 64 位系统：<a href=http://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-05-28/2021-05-07-raspios-buster-arm64-lite.zip>2021-05-07-raspios-buster-arm64-lite.zip</a> （如何写入内存卡此处不再赘述）</p><blockquote><p>重大提示：树莓派系统写入内存卡以后，需要在 boot 目录下新建一个文件 <strong>ssh</strong>，否则无法通过 SSH 连接树莓派！！！（博主在这里踩了个大坑好不容易才找到解决办法）</p></blockquote><h3 id=电脑直连树莓派>电脑直连树莓派</h3><p>  电脑无线网共享给以太网，然后用网线直连树莓派，通过 <code>arp -a</code> 查看树莓派 IP（一般是：192.168.137.x）</p><h3 id=ssh-登录>SSH 登录</h3><p>  找到树莓派 IP 后用 SSH 登录，账号：<code>pi</code>，密码：<code>raspberry</code></p><h3 id=修改时区>修改时区</h3><pre><code class=language-shell>tzselect     # 选时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime     # 改为中国时间
</code></pre><h3 id=中国内地请换源>中国内地请换源</h3><pre><code class=language-shell>nano /etc/apt/sources.list
三行前面的网址都换成清华源（仅前面的网址，不包括后面的路劲）：https://mirrors.tuna.tsinghua.edu.cn/

nano /etc/apt/sources.list.d/raspi.list
整体换成清华源：https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/
</code></pre><h3 id=升级系统>升级系统</h3><pre><code class=language-shell>sudo apt update
sudo apt full-upgrade
</code></pre><h3 id=安装-frpc>安装 frpc</h3><pre><code class=language-shell>wget https://github.com/fatedier/frp/releases/download/v0.37.1/frp_0.37.1_linux_arm64.tar.gz     # 下载系统内核版本对应的 frp 压缩包
tar -xzvf frp_0.37.1_linux_arm64.tar.gz     # 解压到当前文件夹
nano frp_0.37.1_linux_arm64/frpc.ini     # 编辑 frpc 配置文件
</code></pre><h3 id=内网客户端树莓派-frpc-配置>内网客户端（树莓派） frpc 配置</h3><p>  内网客户端（树莓派）frpc 详细配置请查看官方 Wiki：<a href=https://gofrp.org/docs/reference/client-configures/>客户端配置</a></p><p>  贴上博主的 frpc.ini</p><pre><code class=language-ini>[common]
server_addr = **请输入服务器端公网 IP**
server_port = 7000     # 端口号与服务器端 bind_port 一致
log_file = /root/frp_0.37.1_linux_arm64/frpc.log     # frpc 日志文件路径
tls_enable = true     # 服务器端若配置了 tls_only = true，此处也需启用
token = **请输入与服务器端一致的 token**

##[ssh]     # 为了安全起见，博主没有开启树莓派 SSH 的内网穿透
##type = tcp
##local_ip = 127.0.0.1
##local_port = 22
##remote_port = 6000

[bt]     # 宝塔
type = tcp     # 使用 TCP 连接
use_encryption = true     # 启用传输加密
use_compression = true     # 启用传输压缩
local_ip = 127.0.0.1
local_port = 8888     # 树莓派的宝塔端口
remote_port = 8888     # 从公网要访问宝塔的端口

[web]     # 网站
type = tcp     # 使用 TCP 连接
use_encryption = true     # 启用传输加密
use_compression = true     # 启用传输压缩
local_ip = 127.0.0.1
local_port = 443     # 宝塔上网站的端口
remote_port = 443     # 从公网访问网站的端口
</code></pre><h3 id=将-frpc-写入系统服务>将 frpc 写入系统服务</h3><p><code>nano /lib/systemd/system/frpc.service</code> # 新建一个 service 并写入以下配置保存</p><pre><code class=language-ini>[Unit]
Description = frpc
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
ExecStart = /root/frp_0.37.1_linux_arm64/frpc -c /root/frp_0.37.1_linux_arm64/frpc.ini

[Install]
WantedBy = multi-user.target
</code></pre><h3 id=启动-frpc-并设置开机自启>启动 frpc 并设置开机自启</h3><pre><code class=language-shell>systemctl start frpc
systemctl enable frpc
</code></pre><blockquote><p>至此树莓派内网穿透工作就完成咯。可以访问“公网IP:7500”查看内网穿透的状态啦！</p></blockquote></article><div class=my-4><a href=https://b.hui.ke/tags/raspberry-pi/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#Raspberry Pi</a>
<a href=https://b.hui.ke/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#树莓派</a>
<a href=https://b.hui.ke/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#内网穿透</a></div><div class=py-2><div class="my-8 flex flex-col items-center md:flex-row"><a href=https://b.hui.ke/authors/hui.ke/ class="md:me-4 text-primary-text h-24 w-24"><img src=https://b.hui.ke/bagua.webp class="bg-primary-bg w-full rounded-full" alt=Avatar></a><div class="mt-4 w-full md:mt-0 md:w-auto"><a href=https://b.hui.ke/authors/hui.ke/ class="mb-2 block border-b pb-1 text-lg font-bold"><h3>Hui.Ke</h3></a><span class="block pb-2">❤ Cyber Security | Safety is a priority.</span>
<a href=mailto:3199731997@qq.com class=me-2><i class="fas fa-envelope"></i></a>
<a href="https://wpa.qq.com/msgrd?v=3&uin=3199731997" class=me-2><i class="fab fa-qq"></i></a>
<a href=/images/aixinxianquan.webp class=me-2><i class="fab fa-weixin"></i></a></div></div></div><div class="-mx-2 mt-4 flex flex-col border-t px-2 pt-4 md:flex-row md:justify-between"><div><span class="text-primary-text block font-bold">Previous</span>
<a href=https://b.hui.ke/posts/cyber-security-abbreviations/ class=block>网络安全缩写</a></div><div class="mt-4 md:mt-0 md:text-right"><span class="text-primary-text block font-bold">Next</span>
<a href=https://b.hui.ke/posts/centos-security-hardening-faq/ class=block>CentOS 安全加固问题总汇</a></div></div><div id=valine-comments class=mt-4></div><script defer src=https://cdn.jsdelivr.net/npm/valine@1.4.16/dist/Valine.min.js integrity=sha384-e0+DNUCJo75aOAzHQbFWYBCM9/S4f0BhRJXvEgbE3mMS85RM20MSSGStHuNdY2QK crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){new Valine({el:"#valine-comments",appId:"BQnVqWIiq78AdqwyhvBVAa3y-MdYXbMMI",appKey:"RKg5By312YjM8rU6WkkfK9IN",recordIP:"true",serverURLs:"https://l.hui.ke",visitor:"true"})})</script></div><div class=col-span-2><div class="bg-secondary-bg prose max-w-none rounded p-6"><h3>Series of Posts</h3><a href=https://b.hui.ke/posts/data-security-and-personal-information-protection/ class=no-underline>数据安全 & 个人信息保护</a><br><a href=https://b.hui.ke/posts/mp-1/ class=no-underline>密评从零到 0.001</a><br><a href=https://b.hui.ke/posts/regedit-delete-startup-item/ class=no-underline>注册表删启动项</a><br><a href=https://b.hui.ke/posts/ols-wordpress/ class=no-underline>WordPress + OLS</a><br><a href=https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/ class=no-underline>防疫 & 网络安全</a><br><a href=https://b.hui.ke/posts/comparison-of-thin-light-laptops/ class=no-underline>轻薄本对比</a><br><a href=https://b.hui.ke/posts/sangfor-pt1/ class=no-underline>Sangfor PT1 Certification</a><br><a href=https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/ class=no-underline>周一徐总会议纪要</a><br><a href=https://b.hui.ke/posts/my-github-stars/ class=no-underline>我的 GitHub 星标项目</a><br><a href=https://b.hui.ke/posts/raspberry-pi-motion/ class=no-underline>树莓派运动监测和录制</a><br><a href=https://b.hui.ke/posts/transfer-files-with-rsync/ class=no-underline>使用 rsync SSH 传输文件</a><br><a href=https://b.hui.ke/posts/comparison-of-iflytek-mice/ class=no-underline>科大讯飞鼠标参数对比</a><br><a href=https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/ class=no-underline>VMware Tools 安装失败的解决办法</a><br><a href=https://b.hui.ke/posts/raspberry-pi-intranet-penetration/ class=no-underline>树莓派内网穿透</a><br><a href=https://b.hui.ke/posts/image-and-video-optimization/ class=no-underline>网站图片、视频优化处理</a><br><a href=https://b.hui.ke/posts/ccia-top-50-2020/ class=no-underline>2020 年 CCIA 中国网络安全竞争力 50 强榜单</a><br><a href=https://b.hui.ke/posts/cdn-nodes/ class=no-underline>CDN 节点 IP</a><br><a href=https://b.hui.ke/posts/vulfocus-building-guide/ class=no-underline>Vulfocus 搭建指南</a><br><a href=https://b.hui.ke/posts/build-vulstudy/ class=no-underline>搭建 vulstudy</a><br><a href=https://b.hui.ke/posts/windows-file-recovery-help/ class=no-underline>Windows File Recovery 使用帮助</a><br><a href=https://b.hui.ke/posts/bt-and-trojan/ class=no-underline>在宝塔上制作酸酸乳</a><br><a href=https://b.hui.ke/posts/steam-free-games-27/ class=no-underline>Steam 免费游戏 代码一键领取 27 个</a><br><a href=https://b.hui.ke/posts/build-trojan/ class=no-underline>制作“保质期长的”酸酸乳</a><br><a href=https://b.hui.ke/posts/build-taobao-coupon-website/ class=no-underline>搭建淘宝领券网</a><br><a href=https://b.hui.ke/posts/build-ssr/ class=no-underline>制作酸酸乳</a><br><a href=https://b.hui.ke/posts/hello-everyone/ class=no-underline>名言警句</a><br></div><div class="bg-primary-bg
prose sticky top-16 z-10 hidden px-6 py-4 lg:block"><h3>On This Page</h3></div><div class="sticky-toc hidden px-6 pb-6 lg:block"><nav id=TableOfContents><ul><li><a href=#准备工具>准备工具</a></li><li><a href=#服务器端>服务器端</a><ul><li><a href=#安装-frps>安装 frps</a></li><li><a href=#公网服务器端-frps-配置>公网服务器端 frps 配置</a></li><li><a href=#将-frps-写入系统服务>将 frps 写入系统服务</a></li><li><a href=#启动-frps-并设置开机自启>启动 frps 并设置开机自启</a></li></ul></li><li><a href=#树莓派>树莓派</a><ul><li><a href=#使用官方-64-位-raspbian>使用官方 64 位 Raspbian</a></li><li><a href=#电脑直连树莓派>电脑直连树莓派</a></li><li><a href=#ssh-登录>SSH 登录</a></li><li><a href=#修改时区>修改时区</a></li><li><a href=#中国内地请换源>中国内地请换源</a></li><li><a href=#升级系统>升级系统</a></li><li><a href=#安装-frpc>安装 frpc</a></li><li><a href=#内网客户端树莓派-frpc-配置>内网客户端（树莓派） frpc 配置</a></li><li><a href=#将-frpc-写入系统服务>将 frpc 写入系统服务</a></li><li><a href=#启动-frpc-并设置开机自启>启动 frpc 并设置开机自启</a></li></ul></li></ul></nav></div><script>window.addEventListener("DOMContentLoaded",()=>{enableStickyToc()})</script></div></div><script>document.addEventListener("DOMContentLoaded",()=>{hljs.highlightAll()})</script></div></div></main><footer class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl"><div class="text-center p-6 pin-b"><script async src=/js/click.js></script><div id=poem_ip></div><script type=text/javascript>jinrishici.load(function(e){tags.innerHTML=e.data.matchTags})</script><div><span id=timeDate>载入年天数...</span><span id=times>载入时分秒...</span>
<script async src=/js/duration.js></script></div><a href=https://www.foreverblog.cn/go.html target=_blank><img src=https://img.foreverblog.cn/wormhole_4_tp.gif alt style=display:inline-block;width:auto;height:32px title=穿梭虫洞-随机访问十年之约友链博客></a><p class="text-sm text-tertiary-text"><script async src=//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js></script>本站总访问量 <span id=busuanzi_value_site_pv></span> 次
&#183; 您是本站的第 <span id=busuanzi_value_site_uv></span> 个小伙伴</p><script async src=/js/tab.js></script></div></div></footer></body></html>